package cn.app.android.sichuanxiaoke.com.xiaokeapp.utils;

import android.text.TextUtils;

/**
 * Created by Administrator on 2017/8/28.
 */

public class OtherUtils {
    /**
     * 验证手机号码是否合法
     */
    public static boolean validatePhoneNumber(String mobiles) {

        String telRegex = "^((13[0-9])|(15[^4])|(18[0-9])|(17[0-8])|(147,145))\\d{8}$";
        return !TextUtils.isEmpty(mobiles) && mobiles.matches(telRegex);

    }

}
